<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>06-伪类选择器(下)</title>
  <style>
    body {
      color: red;
    }

    a {
      color: #333333;
      text-decoration: none;
    }

    a:hover {
      color: steelblue;
      text-decoration: underline;
    }

    /* :focus 用于选择获得光标的表单元素 */
    input:focus {
      background-color: red;
    }
  </style>
</head>

<body>

  <a href="#">小猪佩奇</a>
  <a href="http://www.baidu.com">百度</a>

  <form action="#">
    <input type="text">
    <input type="text">
    <input type="text">
  </form>


</body>

</html>